#include "junix.h"

int main(int argc, char **argv)
{
	char buf[1024];
	sprintf(buf, "%s %d %3.2f","junix",1984,8.23);
	printf("%s\n",buf);

	char buf2[1024];
	int i;
	float f;

	sscanf(buf, "%s %d %f",buf2,&i,&f);
	printf("%s\n",buf2);
	printf("%d\n",i);
	printf("%f\n",f);

	strcpy(buf,"123456");
	sscanf(buf, "%d", &i);
	printf("%d\n",i);
	printf("%d\n",atoi("123456789"));
	printf("%d\n",strtod("123456789",NULL));

    exit(0);
}

